package br.com.sgmf.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.sgmf.dao.HistoricoVeiculoDAO;
import br.com.sgmf.model.HistoricoVeiculo;
import br.com.sgmf.model.Veiculo;

@Service
public class HistoricoVeiculoService {

	@Autowired
	private HistoricoVeiculoDAO historicoVeiculoDAO;

	public void save(HistoricoVeiculo historicoVeiculo, Veiculo veiculo,
			Date data) {
		historicoVeiculo.setData(data);
		historicoVeiculo.setVeiculo(veiculo);
		historicoVeiculoDAO.save(historicoVeiculo);
	}

}
